package echat.future.cn.echat.my.api;

import echat.future.cn.echat.my.bean.WxInfoBean;
import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface WxApi {
//    https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code
    @GET("sns/oauth2/access_token")
    Observable<WxInfoBean> getWxInfo(@Query("appid")String appid,
                                     @Query("secret")String secret,
                                     @Query("code")String code,
                                     @Query("grant_type")String grant_type);
}
